package com.atguigu.crowd.mvc.handler;

import java.util.Scanner;

public class TestMain {

	public static void main(String[] args) {

		System.out.println("请输入3个数组的元素");
		
		Scanner in=new Scanner(System.in);
		
		int num0= in.nextInt();//1
		int num2= in.nextInt();//2
		int num3= in.nextInt();//3
		
		int [] nums= {num0,num2,num3};
		
		System.out.println("请输入target");
		int numtarget= in.nextInt();//5
		
		for (int i = 0; i < nums.length-1; i++) {
			
			if (nums[i]+nums[i+1]==numtarget) {
				System.out.println("["+i+","+(i+1)+"]");
			}
		}
	}
}

